package com.app.aclass;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class fangkejilu extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fangkejilu);//调用fangkejilu

        TextView histroy_tv = findViewById(R.id.histroy_tv);
        TextView add_tv = findViewById(R.id.add_tv);
        histroy_tv.setOnClickListener(view -> {
            startActivity(new Intent(fangkejilu.this,HistoryActivity.class));
        });
        add_tv.setOnClickListener(view -> {
            startActivity(new Intent(fangkejilu.this,AddActivity.class));
        });
    }
}
